﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RentProjectionUnitEditControl.ascx.cs" Inherits="LenderClearingHouse.RentProjectionUnitEditControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<table width="800px">
    <tr>
        <td style="width:550px; vertical-align:top;">
            <table width="100%">
                <tr>
                    <td>
                        APN
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edAPN" runat="server" Width="300px" ReadOnly="true"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Property Location
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edPropertyLocation" runat="server" Width="300px" ReadOnly="true"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Unit #
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edUnitNumber" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.UnitNumber") %>' Width="300px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        SquareFootage 
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="edSquareFootage" Runat="server" Culture="en-US" LabelWidth="64px" Type="Number" DbValue='<%# DataBinder.Eval( Container, "DataItem.SquareFootage") %>' Width="300px">
                        </telerik:RadNumericTextBox>
                    </td>
                </tr>
            </table>
        </td>
        <td style="width:200px; vertical-align:top;">
            <table width="100%">
                <tr>
                    <td>
                        Bed
                    </td>
                    <td>
                        <telerik:RadComboBox ID="edBedrooms" runat="server" Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Bath
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edBathrooms" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Bathrooms") %>' Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Rehab
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="edRehab" Runat="server" Culture="en-US" LabelWidth="64px" Type="Currency" DbValue='<%# DataBinder.Eval( Container, "DataItem.Rehab") %>' Width="100px">
                          <NumberFormat ZeroPattern="$n"></NumberFormat>
                        </telerik:RadNumericTextBox>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<table>
    <tr>
        <td>
            <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>' ValidationGroup="EditControl"/>
            <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert" Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>' ValidationGroup="EditControl"/>
            &nbsp;
            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>
        </td>
    </tr>
</table>
